package com.ruoyi.cms.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cms.mapper.CmsAppBannerMapper;
import com.ruoyi.cms.domain.CmsAppBanner;
import com.ruoyi.cms.service.ICmsAppBannerService;

/**
 * app信息模块Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-09-08
 */
@Service
public class CmsAppBannerServiceImpl implements ICmsAppBannerService 
{
    @Autowired
    private CmsAppBannerMapper cmsAppBannerMapper;

    /**
     * 查询app信息模块
     * 
     * @param id3 app信息模块主键
     * @return app信息模块
     */
    @Override
    public CmsAppBanner selectCmsAppBannerById3(Long id3)
    {
        return cmsAppBannerMapper.selectCmsAppBannerById3(id3);
    }

    /**
     * 查询app信息模块列表
     * 
     * @param cmsAppBanner app信息模块
     * @return app信息模块
     */
    @Override
    public List<CmsAppBanner> selectCmsAppBannerList(CmsAppBanner cmsAppBanner)
    {
        return cmsAppBannerMapper.selectCmsAppBannerList(cmsAppBanner);
    }

    /**
     * 新增app信息模块
     * 
     * @param cmsAppBanner app信息模块
     * @return 结果
     */
    @Override
    public int insertCmsAppBanner(CmsAppBanner cmsAppBanner)
    {
        return cmsAppBannerMapper.insertCmsAppBanner(cmsAppBanner);
    }

    /**
     * 修改app信息模块
     * 
     * @param cmsAppBanner app信息模块
     * @return 结果
     */
    @Override
    public int updateCmsAppBanner(CmsAppBanner cmsAppBanner)
    {
        return cmsAppBannerMapper.updateCmsAppBanner(cmsAppBanner);
    }

    /**
     * 批量删除app信息模块
     * 
     * @param id3s 需要删除的app信息模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsAppBannerById3s(Long[] id3s)
    {
        return cmsAppBannerMapper.deleteCmsAppBannerById3s(id3s);
    }

    /**
     * 删除app信息模块信息
     * 
     * @param id3 app信息模块主键
     * @return 结果
     */
    @Override
    public int deleteCmsAppBannerById3(Long id3)
    {
        return cmsAppBannerMapper.deleteCmsAppBannerById3(id3);
    }
}
